#ifndef __PauseState_h__
#define __PauseState_h__

#include <Ogre.h>
#include <OIS/OIS.h>

#include <GameState.h>

class PauseState: public Ogre::Singleton<PauseState>, public GameState
{
  public:
    PauseState() {}

    void enter();
    void exit();
    void pause();
    void resume();

    void keyPressed(const OIS::KeyEvent&);
    void keyReleased(const OIS::KeyEvent&);

    void mouseMoved(const OIS::MouseEvent&);
    void mousePressed(const OIS::MouseEvent&, OIS::MouseButtonID);
    void mouseReleased(const OIS::MouseEvent&, OIS::MouseButtonID);

    bool frameStarted(const Ogre::FrameEvent&);
    bool frameEnded(const Ogre::FrameEvent&);

    // Heredados de Ogre::Singleton.
    static PauseState& getSingleton();
    static PauseState* getSingletonPtr();

  protected:
    Ogre::Root* _root;
    Ogre::SceneManager* _sceneMgr;
    Ogre::Viewport* _viewport;
    Ogre::Camera* _camera;

    bool _exitGame;
};

#endif
